package com.junerain.springboot.opfirstdemo;

import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.junit4.SpringRunner;

/**
 * @Author: Junerain
 * @Description:
 * @Date:Created in 10:07 2018/7/31
 * @Modified By:
 */
@Slf4j
@RunWith(SpringRunner.class)
public class RedisTest1 {

    @Test
    public void tetsRedis1(){
        String idkey = "[customerID]";
        String field = "customerID";
        String iid = "fffsdfsdfsdfsdfsdf";
        idkey = idkey.replaceAll("\\[" + field + "\\]", iid);
        System.out.println(idkey);
    }
}
